package com.chuiyuan.dao;

import com.chuiyuan.entity.Poem;

import java.sql.SQLException;
import java.util.List;

/**
 * Created by chuiyuan on 2/17/16.
 * interface for CRUD of Poem
 */
public interface PoemDao {
    public void add (Poem poem) throws SQLException;

    public void update (Poem poem) throws SQLException;

    public void delete(int id) throws SQLException;

    public Poem findById(int id) throws SQLException ;

    public List<Poem> findAll() throws SQLException ;
}
